﻿using System;
using System.CodeDom;
using static System.Console;
namespace hnoi
{
    internal class Program
    {
        public static void movee(char col_1,char col_2,char col_3,int num)
        {
            if (num == 1)
            {
                WriteLine("第1个盘子从" + col_1 + "到" + col_2);
            }
            else
            {
                movee(col_1,col_3,col_2,num-1);
                WriteLine("第{0}个盘子从"+col_1+"到"+col_2,num);
                movee(col_3,col_2,col_1,num-1);
            }
        }
        public static void Main(string[] args)
        {
            WriteLine("请输入盘子个数");
            string numm = ReadLine();
            int number = Convert.ToInt32(numm);
            movee('a', 'b', 'c', number);
            WriteLine();
        }
    }
}